/**
 * 
 */
package com.klxedu.ms.gateway.security.authentication;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.web.authentication.WebAuthenticationDetails;
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;

 /**
 * Title: CustomWebAuthenticationDetailsSource<br>
 * Description: 构建WebAuthenticationDetails对象，目前仅支持 <B>UsernamePasswordAuthenticationFilter</B><br>
 * Copyright @ 2011~2017 Goldgov .All rights reserved.<br>
 * 
 * @author GuoR
 * @createDate 2017年6月7日
 */
public class CustomWebAuthenticationDetailsSource extends WebAuthenticationDetailsSource{

	@Override
	public WebAuthenticationDetails buildDetails(HttpServletRequest context) {
		return new CustomWebAuthenticationDetails(context);
	}

}
